package com.study.design.pattern.pattern.behavioral.visitor;

/**
 * @Author: gongsl
 * @Date: 2025-03-26 22:30
 * @description: ConcreteVisitor(具体访问者)-绩效报告
 */
public class PerformanceReportVisitor implements EmployeeVisitor {
    @Override
    public void visit(Manager manager) {
        System.out.println("经理[" + manager.getName() + "]绩效评分：" + manager.getPerformanceScore());
    }

    @Override
    public void visit(Engineer engineer) {
        System.out.println("工程师[" + engineer.getName() + "]代码贡献量：" + engineer.getCodeLines());
    }
}
